package com.xiguaji.tiktok.config;


import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class Config {

    @Value("${google.client.id}")
    String googleClientId;

    @NacosValue(value = "${register.give.report:1}",autoRefreshed = true)
    int reportNumber;

    @NacosValue(value = "${tiktok.data.query.latestDays:30}",autoRefreshed = true)
    int latestDays;

    /**
     * 果集支付的产品ID
     */
    @NacosValue(value = "${guoji.pay.gugee.product.id:25}",autoRefreshed = true)
    int productID;

    /**
     * 果集订单提交接口URL
     */
    @NacosValue(value = "${guoji.pay.create.url:http://pay.guoji.pro/purchase/create}",autoRefreshed = true)
    String guoJiPayCreateUrl;

    @NacosValue(value = "${guoji.pay.usd.rate:6.5}",autoRefreshed = true)
    double usdRate;

    /**
     * 达人默认头像
     */
    @NacosValue(value="${image.default.blogger.large.url}", autoRefreshed = true)
    private String bloggerLargeImageUrl;

    /**
     * 达人默认头像
     */
    @NacosValue(value="${image.default.blogger.small.url}", autoRefreshed = true)
    private String bloggerSmallImageUrl;

    /**
     * 达人默认头像
     */
    @NacosValue(value="${image.default.blogger.middle.url}", autoRefreshed = true)
    private String bloggerMiddleImageUrl;

    /**
     * 帖子默认头像
     */
    @NacosValue(value="${image.default.media.small.url}", autoRefreshed = true)
    private String mediaImageSmallUrl;

    /**
     * 帖子默认头像
     */
    @NacosValue(value="${image.default.media.middle.url}", autoRefreshed = true)
    private String mediaImageMiddleUrl;

    /**
     * 帖子默认头像
     */
    @NacosValue(value="${image.default.media.large.url}", autoRefreshed = true)
    private String mediaImageLargeUrl;

    /**
     * 商品默认头像
     */
    @NacosValue(value="${image.default.product.small.url}", autoRefreshed = true)
    private String productImageSmallUrl;

    /**
     * 商品默认头像
     */
    @NacosValue(value="${image.default.product.middle.url}", autoRefreshed = true)
    private String productImageMiddleUrl;

    /**
     * 商品默认头像
     */
    @NacosValue(value="${image.default.product.large.url}", autoRefreshed = true)
    private String productImageLargeUrl;
}
